package com.ruoyi.system.enums;

import com.google.common.collect.Lists;

import java.util.List;

/**
 * mes相关枚举
 */
public enum MesEnum {

    OP010_1("OP010-1","机壳上线"),

    OP620("OP620","拧紧合箱螺栓"),

    OP040("OP040","激光打标"),

    ;


    String code;
    String desc;

    MesEnum(String code, String desc) {

        this.code = code;
        this.desc = desc;

    }


    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public static List<String> getAllType() {
        List<String> typeList = Lists.newArrayList();
        for (MesEnum c : MesEnum.values()) {
            typeList.add(c.getDesc());
        }
        return typeList;
    }

}
